package cn.hotel.service;

import cn.hotel.entity.Worker;
import com.github.pagehelper.PageInfo;

import cn.hotel.entity.Worker;

import java.util.List;

public interface WorkerService {
    Worker queryUserByUserAndPass(String username , String password);

    public Worker queryWorkerByUsernameAndPassword(String username , String password);

    //查询所有的员工信息
    List<Worker> queryAllWorkers();

    //分页查询所有的工作人员信息
    PageInfo<Worker> queryWorkerList(int page , int pageSize);

    //新增员工信息
    void insertWorkerInfo(Worker worker);

    //通过员工id查询员工信息
    Worker queryWorkerInfo(int workerId);

//    //更新员工信息
//    void updateWorkerInfo(Worker worker);

    //删除员工信息
    void deleteWorkerInfo(int workerId);

    //更新员工信息
    int updateWorker(Worker worker);
}
